#include "../include/tugla.h"

Tugla::Tugla()
{
    setSpriteImage("img/tugla.png");

    spriteW = sprites->w;
    spriteH = sprites->h;

    setX(300);
    setY(500);
    bounce.w=spriteW;
    bounce.h=spriteH;

    frameBounce.x = 0;
    frameBounce.y = 0;
    frameBounce.w = spriteW;
    frameBounce.h = spriteH;
}

Tugla::~Tugla()
{
    //dtor
}

void Tugla::Render(SDL_Surface* screen)
{
    SDL_Rect spriteBounce = getBounce2();
    SDL_Rect spriteFrameBounce = getFrameBounce();

    SDL_BlitSurface(sprites,&spriteFrameBounce,screen,&spriteBounce);
}

void Tugla::Logic()
{

}
